<template>
	<view class="business" :style="{minHeight: wHeight + 'px' }" >
		<view class="business-top" v-for="(item,index) in business">
			<view class="business-name" >
				<view class="business-name-text">
					<text>{{item.name}}</text>
				</view>
				<view class="business-text" >
					<text>{{item.charge}}</text>
				</view>
			</view>
			<view class="business-yw">
				<text>{{item.presentation}}</text>
			</view>
			<view class="business-fiy" >
				<view class="business-fiy-li" v-for="(item,index) in classify">
					<text>{{item.names}}</text>
				</view>
				
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				wHeight: '',
				business:[
					{
						name:"业务名称",
						charge:"收费",
						presentation:"业务介绍业务介绍业务介绍业务介绍业务介绍业务介绍业务介绍业务介绍业务介绍业务介绍业务介绍业务介绍业务介绍业务介绍业务介绍...",
					},
					{
						name:"业务名称",
						charge:"免费",
						presentation:"业务介绍业务介绍业务介绍业务介绍业务介绍业务介绍业务介绍业务介绍业务介绍业务介绍业务介绍业务介绍业务介绍业务介绍业务介绍...",
					},
				],
				classify:[
					{
						names:"业务范围"
					},
					{
						names:"业务范围"
					},
					{
						names:"业务范围"
					},
					{
						names:"业务范围"
					},
					{
						names:"业务范围"
					},
					{
						names:"业务范围"
					},
				]
			}
		},
		onLoad() {
			this.wHeight = this.$store.state.ContentHeight - 45;
			// 律所列表
			this.$post(this.api.business_list).then((res) => {
				console.log(res)
			}).catch((err) => {
				console.log(err)
			});
		},
	}
</script>

<style lang="less" scoped>
	.business {
		background: #EFEFEF;
		position: absolute;
		.business-top {
			margin-top: 30rpx;
			padding: 30rpx 0; 
			background: #FFFFFF;
			width: 750rpx;
			.business-name {
				width: 700rpx;
				margin: 30rpx auto;
				display: flex;
				justify-content: space-between;
				.business-name-text {
					text {
						font-size: 35rpx;
						font-family: Source Han Sans CN;
						font-weight: bold;
						color: #333333;
					}
				}
				.business-text{
					float: right;
					margin-right: 30rpx;
					text{
						font-size: 32rpx;
						font-family: Source Han Sans CN;
						font-weight: bold;
						color: #FF0000;
					}
				}
			}
			.business-yw{
				margin-left: 25rpx;
				width: 600rpx;
				overflow: hidden;
				text-overflow:ellipsis;
				white-space: nowrap;
				text{
					font-size: 27rx;
					font-family: Source Han Sans CN;
					font-weight: 400;
					color: #666666;
				}
			}
			.business-fiy{
				width: 730rpx;
				margin:20rpx auto;
				display: flex;
				flex-wrap: wrap;
				.business-fiy-li{
					margin:10rpx 20rpx;
					width: 133rpx;
					background: #EDEDED;
					border-radius: 15rpx;
					overflow: hidden;
					text-overflow:ellipsis;
					white-space: nowrap;
					padding: 2rpx 0;
					text-align: center;
					text{
						font-size: 23rpx;
						font-family: Source Han Sans CN;
						font-weight: 400;
						color: #666666;
					}
				}
			}
		}
	}
</style>
